<template>
  <div class="e-detail-content">
    <div class="content-title">
      <div class="title-text">{{ title }}</div>
      <div class="title-right">
        <slot name="title-right"></slot>
      </div>
    </div>
    <div class="content-body">
      <slot></slot>
    </div>
  </div>
</template>
<script setup lang="ts">
  defineProps({
    title: {
      type: String,
      default: ''
    }
  })
</script>
<style scoped lang="scss">
  .e-detail-content {
    .content-title {
      height: 56px;
      line-height: 56px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: #ffffff;
      padding: 0 20px;
      .title-text {
        font-family: PingFang SC;
        font-size: 20px;
        font-weight: 600;
        line-height: 28px;
        text-align: left;
      }
    }
    .content-body {
      padding: 20px;
    }
  }
</style>
